package com.yanqu.road.server.cmd.cookboy.process2.cross;

import com.yanqu.road.pb.cookboy.CookBoyProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.activity.cookboy.CookBoyMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.S_CROSS_COOK_BOY2_ROBOT_JOIN, desc = "跨服参加者返回加奖励")
public class CrossTableOverRobotJoinerCmd extends AbstractCommand {

	@Override
	public boolean parseData(YanQuMessage packet) throws Exception {
		return true;
	}

	@Override
	public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
		CookBoyProto.CrossCookBoy2RobotJoinBanquetMsg crossRespMsg = CookBoyProto.CrossCookBoy2RobotJoinBanquetMsg.parseFrom(packet.getBytes());
		ret = crossRespMsg.getRet();
		if(ret == 0){
			CookBoyMgr.cookBoy2RobotBackMsg(crossRespMsg.getActivityId(),crossRespMsg);
		}
	}

	@Override
	public void sendData(GamePlayer player) {

	}
}
